/**
 * Created on May 27, 2007
 */
package x.java.nio.channels;

import java.io.IOException;
import java.nio.channels.FileChannel;

/**
 * @author qiangli
 *
 */
public class FileLock extends java.nio.channels.FileLock {

	/**
	 * @param channel
	 * @param position
	 * @param size
	 * @param shared
	 */
	public FileLock(FileChannel channel, long position, long size,
			boolean shared) {
		super(channel, position, size, shared);
		throw new RuntimeException("FIXME - not tested");
	}

	/* (non-Javadoc)
	 * @see java.nio.channels.FileLock#isValid()
	 */
	public boolean isValid() {
		return false;
	}

	/* (non-Javadoc)
	 * @see java.nio.channels.FileLock#release()
	 */
	public void release() throws IOException {
	}

}
